//---------------------------------------------------------------------------

#ifndef Unit6H
#define Unit6H
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <ComCtrls.hpp>

//---------------------------------------------------------------------------
class TForm6 : public TForm
{
__published:	// IDE-managed Components
	TRichEdit *RichEdit1;
	TRichEdit *RichEdit2;
	TButton *Button1;
	void __fastcall Button1Click(TObject *Sender);
	void __fastcall FormCreate(TObject *Sender);
private:	// User declarations
	HANDLE hMapFile;
	LPTSTR fBufData;
	HANDLE fCltHnd;
	HANDLE fThisHnd;

	virtual void __fastcall WndProc(Messages::TMessage &Message);

public:		// User declarations
	__fastcall TForm6(TComponent* Owner);
	__fastcall ~TForm6() {
		if (hMapFile)
        	CloseHandle(hMapFile);
    }
};
//---------------------------------------------------------------------------
extern PACKAGE TForm6 *Form6;
//---------------------------------------------------------------------------
#endif
